﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using OnBarcode.Barcode;

namespace Pruebas
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void btnGenerarQR_Click(object sender, EventArgs e)
        {
            QRCode barcode;

            if (txtInput.Text.Length > 0)
            {
                barcode = new QRCode();

                barcode.Data = txtInput.Text;
                barcode.drawBarcode(@"c:\qrcode.png");

                picQR.ImageLocation = @"c:\qrcode.png";
            }
        }
    }
}
